import request from "../utils/request";

//全部科室
export function GetLevel(params) {
  return request({
    url: "/v1/dashboard/depart-ment-level",
    method: "get",
    params
  });
}
// 医生地区和排序枚举
export function cityAndSortSelect(params) {
  return request({
    url: "/v1/dashboard/city-and-sort-select",
    method: "get",
    params
  });
}
//医生列表
export function doctorList(data) {
  return request({
    url: "/v1/dashboard/doctor-list",
    method: "post",
    data
  });
}
//获取用户基本信息
export function getUserInfo(data) {
  return request({
    url: "/v1/user/get-user-info",
    method: "post",
    data
  });
}
//获取未读信息
export function getUnreadMessage(params) {
  return request({
    url: "/v1/dashboard/message-num",
    method: "get",
    params
  });
}
//获取未读信息
export function getPatientList(params) {
  return request({
    url: "/v1/user/patient/get-patient-list",
    method: "get",
    params
  });
}
// 关注/取消关注医生
export function watchDoctor(data) {
  return request({
    url: "/v1/user/watch-doctor",
    method: "post",
    data
  });
}
// 订单新增
export function createOrder(data) {
  return request({
    url: "/v1/order/create-order",
    method: "post",
    data
  });
}
//获取验证码
export function getSms(params) {
  return request({
    url: "/v1/sms/send-sms-code/send",
    method: "get",
    params
  });
}
// 新增就诊人
export function addPatient(data) {
  return request({
    url: "/v1/user/patient/add-patient",
    method: "post",
    data
  });
}
// 删除就诊人
export function deletePatient(params) {
  return request({
    url: "/v1/user/patient/delete-patient/"+params,
    method: "get"
  });
}
// 编辑就诊人
export function editPatient(data) {
  return request({
    url: "/v1/user/patient/edit-patient",
    method: "post",
    data
  });
}
//订单详情
export function orderDetail(params) {
  return request({
    url: "/v1/order/order-detail",
    method: "get",
    params
  });
}
// 查询订单列表
export function orderPage(data) {
  return request({
    url: "/v1/order/page",
    method: "post",
    data
  });
}